package com.ruoyi.house_sale.service.serviceImpl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.PaidSortMapper;
import com.ruoyi.house_sale.domain.PaidSort;
import com.ruoyi.house_sale.service.IPaidSortService;

/**
 * 收付款类别Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-30
 */
@Service
public class PaidSortServiceImpl implements IPaidSortService 
{
    @Autowired
    private PaidSortMapper paidSortMapper;

    /**
     * 查询收付款类别
     * 
     * @param paidsortid 收付款类别主键
     * @return 收付款类别
     */
    @Override
    public PaidSort selectPaidSortByPaidsortid(Long paidsortid)
    {
        return paidSortMapper.selectPaidSortByPaidsortid(paidsortid);
    }

    /**
     * 查询收付款类别列表
     * 
     * @param paidSort 收付款类别
     * @return 收付款类别
     */
    @Override
    public List<PaidSort> selectPaidSortList(PaidSort paidSort)
    {
        return paidSortMapper.selectPaidSortList(paidSort);
    }

    /**
     * 新增收付款类别
     * 
     * @param paidSort 收付款类别
     * @return 结果
     */
    @Override
    public int insertPaidSort(PaidSort paidSort)
    {
        return paidSortMapper.insertPaidSort(paidSort);
    }

    /**
     * 修改收付款类别
     * 
     * @param paidSort 收付款类别
     * @return 结果
     */
    @Override
    public int updatePaidSort(PaidSort paidSort)
    {
        return paidSortMapper.updatePaidSort(paidSort);
    }

    /**
     * 批量删除收付款类别
     * 
     * @param paidsortids 需要删除的收付款类别主键
     * @return 结果
     */
    @Override
    public int deletePaidSortByPaidsortids(Long[] paidsortids)
    {
        return paidSortMapper.deletePaidSortByPaidsortids(paidsortids);
    }

    /**
     * 删除收付款类别信息
     * 
     * @param paidsortid 收付款类别主键
     * @return 结果
     */
    @Override
    public int deletePaidSortByPaidsortid(Long paidsortid)
    {
        return paidSortMapper.deletePaidSortByPaidsortid(paidsortid);
    }
}
